import {request} from 'umi';

export async function fetchIspList(body) {
  return request('/pay/common/isp-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchPayChannelList(body) {
  return request('/pay/common/pay-channel-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchChargeCounts(body) {
  return request('/pay/common/charge-counts', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchChargeList(body) {
  return request('/pay/common/charge-list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchChargeAmountAnalyze(body) {
  return request('/pay/common/charge-amount-analyze', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchChargeNumAnalyze(body) {
  return request('/pay/common/charge-num-analyze', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function fetchChargeUsersAnalyze(body) {
  return request('/pay/common/charge-users-analyze', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}